package com.lqq.designPattern.design_principle.接口隔离原则;

//Zsm安全锁，有防火，防水功能
public class ZsmSafetyDoor implements Fireproof, Waterproof{

    private String name = "Zsm安全锁";

    public String getName() {
        return name;
    }

    //防火
    @Override
    public void fireproof() {
        System.out.println("防火");
    }

    //防水
    @Override
    public void waterproof() {
        System.out.println("防水");
    }
}
